<template>
  <div class="app-container min-1250">
    <div class="table-wrapper">
      <el-tabs
        v-model="tabsActivity"
        type="border-card">
        <el-tab-pane label="佣金规则" name="commission">
          <el-form :model="paneData" label-width="100px" style="padding-top: 40px;">
            <el-form-item label="返现比例">
              <el-input v-model="paneData.ratio1" style="width: 200px" :disabled="!editing">
                <template slot="append">%</template>
              </el-input>
            </el-form-item>
            <el-form-item label="分润比例">
              <el-input v-model="paneData.ratio2" style="width: 200px" :disabled="!editing">
                <template slot="append">%</template>
              </el-input>
            </el-form-item>
            <el-form-item>
              <el-button type="primary" @click='editing = true' v-if="!editing">编辑</el-button>
              <el-button @click='doCancel' v-if="editing">取消</el-button>
              <el-button type="primary" @click='doSave' v-if="editing">保存</el-button>
            </el-form-item>
          </el-form>
        </el-tab-pane>
      </el-tabs>
    </div>
  </div>
</template>

<script>
import mixin from './mixin'
export default {
  mixins: [mixin]
}
</script>

<style lang="scss" scoped>
    @import "./style.scss";
</style>

